#pragma once
#ifndef GameEngine_Precompiled_h
#define GameEngine_Precompiled_h

#include <list>
#include <stdarg.h>
#include <string>
#include <vector>

#include "../DXUT/DXUT.h"

#if defined(_DEBUG)
#define DEBUG_NEW new(_NORMAL_BLOCK,__FILE__, __LINE__)
#define new DEBUG_NEW
#endif

template<typename T>
T* safe_pointer_cast(void* val) {
    if (val != NULL) {
        return static_cast<T*>(val);
    }

    return NULL;
}

#endif